import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
import axios from './http'
// 全局挂在axios
const app = createApp(App)
// import axios from 'axios'
app.config.globalProperties.$axios = axios

import { ElMessage } from "element-plus";
app.config.globalProperties.$message= ElMessage

// import Category from './mode/CateEnum' // 分类的枚举类型
// import ItemData from './mode/ItemData' // item模型类
// import DataHelper from './store/DataHelper'
// let newItem = new ItemData()
// console.log(newItem)
// let data = new DataHelper('key1', 'key2')
// data.addData(newItem)

app.use(store).use(router).use(ElementPlus).mount('#app')
